const args = process.argv;
const params = {};
args.forEach((k, i) => {
  if (/^\-+/.test(k)) {
    params[k.replace(/^\-+/g, "")] = args[i + 1];
  }
});

const method = params.method;
switch (method) {
  /* docs */
  default :
  console.warn('指令不正确',method)
}